package com.xugou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author xugou
 * @date 2022/6/17  13:28
 */
@Controller
@RequestMapping("common")
public class CommonController {

    //注销
    @RequestMapping("/logOut")
    public String logout(HttpSession session){
        //session过期
        session.invalidate();
        //跳转到登录页面
        return "login";
    }

    //帮助

    //关于


}
